/**
 * 测试账号配置文件
 * 仅用于开发测试环境，生产环境请勿使用
 */

const testAccounts = {
  // 普通用户测试账号
  normalUser: {
    openid: 'test_openid_normal_user',
    userId: 'test_user_id_001',
    nickname: '测试用户',
    avatarUrl: '/assets/images/default-avatar.png',
    credits: 50,
    isVip: false,
    freeCredits: 3
  },
  
  // VIP用户测试账号
  vipUser: {
    openid: 'test_openid_vip_user',
    userId: 'test_user_id_002',
    nickname: 'VIP测试用户',
    avatarUrl: '/assets/images/default-avatar.png',
    credits: 300,
    isVip: true,
    vipLevel: 1,
    vipExpireDate: '2024-12-31T23:59:59.999Z',
    freeCredits: 0
  },
  
  // 高级VIP用户测试账号
  advancedVipUser: {
    openid: 'test_openid_advanced_vip_user',
    userId: 'test_user_id_003',
    nickname: '高级VIP测试用户',
    avatarUrl: '/assets/images/default-avatar.png',
    credits: 5000,
    isVip: true,
    vipLevel: 3,
    vipExpireDate: '2025-12-31T23:59:59.999Z',
    freeCredits: 0
  }
};

// 是否启用测试账号（开发环境设置为true，生产环境必须设置为false）
const enableTestAccounts = true;

module.exports = {
  testAccounts,
  enableTestAccounts
}; 